#include <iostream>
#include <map>
#include <set>
using namespace std;

void Test1(){
  multiset<int> ms = {1,4,2,6,3,7,4,2,4,1};
  multiset<int>::iterator it = ms.begin();
  while(it != ms.end())
  {
    cout << *it << " ";
    ++it;
  }
  cout << endl;

  cout << "test_erase:";
  ms.erase(1);
  it = ms.begin();
  while(it != ms.end())
  {
    cout << *it << " ";
    ++it;
  }
  cout << endl;
  
  cout << "test_find:";
  auto pos = ms.find(4);
  while(pos != ms.end())
  {
    cout << *pos << " ";
    ++pos;
  }
  cout << endl;

  cout << "test_count:";
  cout << ms.count(4) << endl;
  
}

int main(){
  Test1();
  return 0;
}
